package com.struts2.example.action;

import java.util.ArrayList;
import java.util.List;

import com.opensymphony.xwork2.ActionSupport;

public class IteratorKFCAction extends ActionSupport{

	/**
	 * 
	 */
	private String TAG="IteratorKFCAction:";
	private static final long serialVersionUID = 1L;
	private List<String> comboMeals;
	
	public List<String> getComboMeals()
	{
		return comboMeals;
	}
	public void setComboMeals(List<String> comboMeals)
	{
		this.comboMeals=comboMeals;
	}
	
	public String execute()
	{
		System.out.print(TAG+"execute"+"\n");
		comboMeals=new ArrayList<String>();
		comboMeals.add("Bang 1");
		comboMeals.add("Bang 2");
		comboMeals.add("String 3");
		comboMeals.add("String 4");
		comboMeals.add("String 5");
		comboMeals.add("String 6");
		return SUCCESS;
	}
	
}
